/* 清除浏览器默认样式 */
* {
	margin: 0;
	padding: 0;
}

body {
	background-color: #334455;
}

a {
	text-decoration: none;
}

.box {
	width: 1000px;
	height: 300px;
	margin: 200px auto;
}

.box .link {
	float: left;
	margin: 0 20px;
	width: 205px;
	height: 280px;
	position: relative;
}

.link1 .icon {
	background-image: url("a.png");
	background-position: center center;
	background-repeat: no-repeat;
}
.link2 .icon {
	background-image: url("a.png");
	background-position: center center;
	background-repeat: no-repeat;
}
.link3 .icon {
	background-image: url("a.png");
	background-position: center center;
	background-repeat: no-repeat;
}
/* 图标样式 */
.box .link .icon {
	display: inline-block;
	width: 100%;
	height: 190px;
	/* 动画执行0.2s ,线性*/
	transition: 0.2s linear;
	/* webkit safari, moz 火狐，o opera 浏览器兼容设置 */
	-webkit-transition: 0.2s linear;
	-moz-transition: 0.2s linear;
	-o-transition: 0.2s linear;
}
/* 鼠标滑过，动画效果 */
.box .link .icon:hover {
	/* 旋转360度，缩放1.2倍 */
	transform: rotate(360deg) scale(1.2);
	/* 兼容配置 */
	-webkit-transform: rotate(360deg) scale(1.2);
	-moz-transform: rotate(360deg) scale(1.2);
	-o-transform: rotate(360deg) scale(1.2);
}

.box .link .btn {
	/* 样式转换为block区，用于块状区域，不然只有文字区属于a链接 */
	display: block;
	width: 201px;
	height: 50px;
	border: 2px solid rgba(255,255,255,0.6);
	line-height: 50px;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	/* 块内左上右下边距 */
	padding: 0 0 0 15px; 
	box-sizing: border-box; /* 边框内作为一个盒子，超出部分自适应缩回 */
	margin: auto;
	
	background: url("a.png") no-repeat 130px center;
	/* 定义动画时间 */
	transition: 0.4s ease;
	-webkit-transition: 0.4s ease;
	-moz-transition: 0.4s ease;
	-o-transition: 0.4s ease;
	/* 相对位置 */
	position: relative;
}
/* 鼠标滑过样式变化 */
.box .link .btn:hover {
	background-position: 140px center;
	border: 2px solid rgba(255,255,255,1);
}

/* 所有线条都有的样式和动画 */
.box .link .btn .line {
	display: block;
	background: none;
	position: absolute;
	transition: 0.2s linear;
	-moz-transition: 0.2s linear;
}

/* 每条线的样式和鼠标滑过时样式 */
.box .link .btn .line-top {
	left: -100%;
	top: -2px;
	width: 0;
	height: 2px;
}
.box .link .btn:hover .line-top {
	width: 180px;
	background-color: #fff;
	position: absolute;
	left: -40px;
	top: -2px;
}

.box .link .btn .line-right {
	width: 2px;
	height: 60px;
	right: -2px;
	top: -200%;
	/* background-color: red; */
}
.box .link .btn:hover .line-right {
	width: 2px;
	top: -50%;
	background-color: #fff;
	position: absolute;	
}

.box .link .btn .line-buttom {
	width: 0px;
	height: 2px;
	bottom: -2px;
	right: -100%;
}
.box .link .btn:hover .line-buttom {
	width: 60px;
	right: -30%;
	background-color: #fff;
	position: absolute;
}

.box .link .btn .line-left {
	width: 2px;
	height: 0px;
	bottom: -150%;
	left: -2px;
}
.box .link .btn:hover .line-left {
	width: 2px;
	height: 80px;
	background-color: #fff;
	position: absolute;
	bottom: -80%;
}

/* 提示框样式 */
.box .tooltip {
	width: 200px;
	height: 35px;
	line-height: 35px;
	background-color: green;
	margin: auto 5px;
	padding-left: 15px;
	border-radius: 8px;
	position: absolute;
	color: #fff;
	
	opacity: 0; /* 完全透明不可见，js中改为透明*/
}

.box .tooltip span {
	position: absolute;
	/* 下面是一个三角 */
	width: 0;
	height: 0;
	border: 8px solid transparent;
	border-top-color: green;
	
	/* 上下35px, 左右自动 */
	margin: 35px auto;
	left: 45%;

}







